package vue;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JScrollPane;
import javax.swing.JList;
import javax.swing.border.TitledBorder;
import javax.swing.JButton;

import modele.Commande;
import modele.ListeCommande;

import controleur.HomeController;
import java.awt.CardLayout;
import javax.swing.JTable;
import org.jdesktop.beansbinding.BeanProperty;
import java.util.List;
import org.jdesktop.swingbinding.JTableBinding;
import org.jdesktop.swingbinding.SwingBindings;
import org.jdesktop.beansbinding.AutoBinding.UpdateStrategy;
@SuppressWarnings("serial")
public class Accueilbis extends JFrame {

	private JPanel contentPane;
	private JPanel contentPane2;
	private BilanDeLaJrnee bilan= new BilanDeLaJrnee();
	private  JButton btnBilanDeLaJrnee ;
	private ListeCommande commande = new ListeCommande();

	private JButton btnPasserUneCommande;
	private JPanel panel_1;
	private JButton btnActualiser;
	private JList listCom;

	public JList getListCom() {
		return listCom;
	}





	public void setListCom(JList listCom) {
		this.listCom = listCom;
	}





	public JButton getBtnActualiser() {
		return btnActualiser;
	}





	public void setBtnActualiser(JButton btnActualiser) {
		this.btnActualiser = btnActualiser;
	}





	





	public JPanel getContentPane() {
		return contentPane;
	}

	
	

	
	public JButton getBtnBilanDeLaJrnee() {
		return btnBilanDeLaJrnee;
	}

	public void setBtnBilanDeLa(JButton btnBilanDeLaJrnee) {
		this.btnBilanDeLaJrnee = btnBilanDeLaJrnee;
	}

	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Accueilbis frame = new Accueilbis();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Accueilbis() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new CardLayout(0, 0));
		
		panel_1 = new JPanel();
		contentPane.add(panel_1, "name_9404721360522");
		panel_1.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBounds(0, 0, 275, 251);
		panel_1.add(panel);
		panel.setLayout(null);
		
		listCom = new JList();
		listCom.setBounds(12, 12, 251, 227);
		panel.add(listCom);
		
		
		
	    btnPasserUneCommande = new JButton("Passer une commande");
	    btnPasserUneCommande.setBounds(287, 28, 139, 23);
	    panel_1.add(btnPasserUneCommande);
		
	    btnBilanDeLaJrnee = new JButton("Bilan de la journ\u00E9e");
	    btnBilanDeLaJrnee.setBounds(287, 96, 139, 23);
	    panel_1.add(btnBilanDeLaJrnee);
	    
	    btnActualiser = new JButton("Actualiser");
	    btnActualiser.setBounds(293, 153, 117, 25);
	    panel_1.add(btnActualiser);
	    contentPane.add(bilan);
		contentPane2=contentPane;
		HomeController essai= new HomeController(this);

		
	}

	public JButton getBtnPasserUneCommande() {
		return btnPasserUneCommande;
	}

	public void setBtnPasserUneCommande(JButton btnPasserUneCommande) {
		this.btnPasserUneCommande = btnPasserUneCommande;
	}





	public BilanDeLaJrnee getBilan() {
		return bilan;
	}





	public void setBilan(BilanDeLaJrnee bilan) {
		this.bilan = bilan;
	}





	public JPanel getContentPane2() {
		return contentPane2;
	}





	public void setContentPane2(JPanel contentPane2) {
		this.contentPane2 = contentPane2;
	}





	public ListeCommande getCommandes() {
		return commande;
	}





	public void setCommandes(ListeCommande commandes) {
		this.commande = commandes;
	}
	
}
